package com.xmtlxx.common.utils.push.config;

import lombok.Getter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "push")
public class PushConfig {
    @Getter
    private static String appId;
    @Getter
    private static String appKey;
    @Getter
    private static String masterSecret;
    @Getter
    private static String domain;
    @Getter
    private static String appName;

    public void setAppKey(String appKey) {
        PushConfig.appKey = appKey;
    }

    public void setMasterSecret(String masterSecret) {
        PushConfig.masterSecret = masterSecret;
    }

    public void setDomain(String domain) {
        PushConfig.domain = domain;
    }

    public void setAppName(String appName) {
        PushConfig.appName = appName;
    }

    public void setAppId(String appId) {
        PushConfig.appId = appId;
    }
}
